#ifndef COMMONWIDGET_H
#define COMMONWIDGET_H

#include <Wt/WContainerWidget>



namespace Wt {
  class WText;
  class WTabWidget;
  class WStackeWidget;
  class WMenu;
}

using namespace Wt;

class PersonalWidget;
class OtherWidget;


class CommonWidget : public WContainerWidget
{
private:
    int UserId;

    WTabWidget *tabWidget;
    PersonalWidget *myPage;
    WText *logout;
    OtherWidget *otherPage;
    WContainerWidget *logoutCont;
    WPushButton *logoutBtn;
    WApplication *app1;

public:
     CommonWidget(int id,WApplication *app);
     void logOutFunc(int tab);
     virtual ~CommonWidget();

};

#endif
